package com.chuanke.ckfamily.service.constant;

/**
 * Created by xiaoxia on 2017/8/20 10:13.
 */
public enum RedPacketType {
    // 家族红包
    FAMILY(1),

    // 个人红包
    PERSONAL(2);

    private int type;

    RedPacketType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public static String getTypeTitle(Integer type) {
        if (type == null || type.intValue() == FAMILY.getType()) {
            return "家族红包";

        } else {
            return "族长红包";

        }
    }

}
